package com.qf.mapper;

import com.github.pagehelper.PageHelper;
import com.qf.pojo.Shop;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Kuke
 * @date 2022/3/22
 * 针对商品的数据访问接口
 */
@Repository//持久层 被spring管理
public interface ShopMapper {

    /**
     * 查询所有商品实体
     * @return 返回商品列表
     */
    List<Shop> findAllShop() ;
    void updateShop(Shop shop);
    void addShop(Shop shop);
    void deleteShop(Shop shop);
    void addMoney(@Param("transfername") String name,@Param("money") Integer money);
    void decreaseMoney(@Param("totransfername") String name,@Param("money") Integer money);
}
